package com.ds.api.dao;

import java.util.List;
import java.util.Map;

import com.ds.api.model.TreeModel;
import com.ds.api.model.TypeMachine;

public interface TypeMachineMapper {
    int deleteByPrimaryKey(Integer uid);

    int insert(TypeMachine record);

    int insertSelective(TypeMachine record);

    TypeMachine selectByPrimaryKey(Integer uid);

    int updateByPrimaryKeySelective(TypeMachine record);

    int updateByPrimaryKey(TypeMachine record);
    
    List<TypeMachine> query(Map<String,Object> map);
    
    /**
     * 递归查询
     * @description: TODO
     * @param map
     * @return   
     * @author xiangwei
     * @date 2017年9月7日
     */
    List<Map<String,Object>> queryTree(Map<String,Object> map);
}